package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblClass;
import com.hxzy.research.pojo.TblCourse;

import java.util.List;

public interface TblClassMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TblClass record);

    int insertSelective(TblClass record);

    TblClass selectByPrimaryKey(Integer id);
    //根据分公司id查询班级
    public List<TblClass> selectClassByid(Integer branchid);

    int updateByPrimaryKeySelective(TblClass record);

    int updateByPrimaryKey(TblClass record);

    //添加班级
    public void addClass(TblClass tblClass)throws Exception;
    //修改班级
    public void updateClass(TblClass tblClass)throws Exception;
    //删除班级
    public void deleteClass(Integer cid)throws Exception;
    //通过班级id查班级
    public TblClass findClassById(Integer cid)throws Exception;
}